from app.api import abstract

class Action(abstract.Action):

    check_oauth = False
    
    def _post(self):

        self.setup()
        
        data = abstract.json.loads(self.request.body)
        
        return abstract.models.user.invite(data["from_id"], data["users"])